
from django.contrib import admin
from django.urls import path,re_path,include
from django.conf import settings
from django.views.static import serve

from rest_framework.routers import SimpleRouter
from .views import CategoryView,CourseView,ChapterViewSet,CourserSearchView
router=SimpleRouter()
# 127.0.0.1:8080/course/category/
router.register('category',CategoryView,'CategoryView')
router.register('free',CourseView,'CourseView')
router.register('chapters',ChapterViewSet,'ChapterViewSet')
router.register('search',CourserSearchView,'CourserSearchView')
urlpatterns = [

]
urlpatterns+=router.urls
